using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Data;
using System.Data.Common;

namespace IProvider
{
    public abstract class DataAccess
    {
        public IDataReader ExecuteReader(DbCommand comm,CommandBehavior behavior)
        {
            return comm.ExecuteReader(behavior);
        }

        public IDataReader ExecuteReader(DbCommand comm)
        {
            return ExecuteReader(comm, CommandBehavior.Default);
        }

        public int ExecuteNonQuery(DbCommand comm)
        {
            return comm.ExecuteNonQuery();
        }

        public object ExecuteScalar(DbCommand comm)
        {
            return comm.ExecuteScalar();
        }
    }
}
